﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yugi.Script;
namespace Yugi.Client.Card
{
    class Program
    {
        static void Main(string[] args)
        {
            PythonEngine.GetInsitance().SetAssembly(typeof(YBaseCard).Assembly);
            YMonsterCard normal = new YMonsterCard();
            normal.Damage = 500;
            normal.Defend = 2500;

            YSpellCard card = new YSpellCard();

            card.Script = "card.Damage,card.Defend=card.Defend,card.Damage";
            Dictionary<string, object> arg = new Dictionary<string, object>();
            arg.Add("card", normal);
            card.Active(arg);


            Console.WriteLine("Damage {0} Defend {1}", normal.Damage, normal.Defend);


            normal = new YMonsterCard();
            normal.Damage = 100;
            normal.Defend = 1500;

            
            card.Active(arg);


            Console.WriteLine("Damage{0} Defend{1}", normal.Damage, normal.Defend);

        }
    }
}
